//
//  SGJLoginRegisterViewController.m
//  Sewage
//
//  Created by 宗庆猛 on 2017/5/30.
//  Copyright © 2017年 宗庆猛. All rights reserved.
//

#import "SGJLoginRegisterViewController.h"
#import "SGJLoginOnPasswordViewController.h"
#import "SGJRegisterViewController.h"



@interface SGJLoginRegisterViewController ()
@property (weak, nonatomic) IBOutlet UIButton *loginButton;

@property (weak, nonatomic) IBOutlet UIButton *registerButton;
@end

@implementation SGJLoginRegisterViewController
// 登陆按钮
- (IBAction)loginButtonClick:(id)sender {
    
    NSLog(@"liangtian 登陆");
    
    
    
    
    SGJLoginOnPasswordViewController *loginOnPWDVC = [[SGJLoginOnPasswordViewController alloc] init];
    [self presentViewController:loginOnPWDVC animated:YES
                     completion:nil];
   // [self.navigationController pushViewController:loginOnPWDVC animated:YES];
    
}
// 注册按钮
- (IBAction)registerButtonClick:(id)sender {
    
    
    SGJRegisterViewController *registerVC = [[SGJRegisterViewController alloc]init];
    [self presentViewController:registerVC animated:YES
                     completion:nil];
    //[self.navigationController pushViewController:registerVC animated:YES];
}

-(void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
  

    self.loginButton.layer.cornerRadius = 23;
    self.registerButton.layer.cornerRadius = 23;
    self.registerButton.layer.borderWidth = 1;
    self.registerButton.layer.borderColor = [UIColor blueColor].CGColor;
    self.loginButton.clipsToBounds = YES;
    self.registerButton.clipsToBounds = YES;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
